index.js ➔ ... ➔ ???   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 2
c 1
b 0
f 0
nc 2
dl 0
loc 6
rs 9.4285
nop 1
1
'use strict'
2
3
import fs from 'fs'
4
5
export default function (server) {
6
  fs.readdirSync(__dirname).forEach((file) => {
7
    if (file.indexOf('index') === -1) {
8
      const router = require(`./${file}`)
9
      router.default(server)
10
    }
11
  })
12
}
13